<?php 
$data = $this->requestAction('/admin/reports/reports/index/');

if(!empty($data)) {
?>
<?php echo $form->create(null, array('url' => $this->webroot.'admin/reports')); ?>
    <fieldset class="base">
    <legend><?php __('Custom'); ?></legend>
	<?php echo $form->input('Report.choices', array('label' => __('Frequence'))); ?>
    </fieldset>
<?php// echo $bsform->end('Go'); ?>
<table>
  <tr>
    <th><?php __($data[0]['frequence']); ?></th>
    <th><?php __('Quantity'); ?></th>
    <th><?php __('Total price'); ?></th>
  </tr>
  <?php 
  foreach ($data as $row){
  ?>
	  <tr>
		<td><?php echo $row['date']?></td>
		<td><?php echo $row['quantity']?></td>
		<td><?php echo $price->currency($row['total']);?></td>    
	  </tr>
  <?php }?>
</table>
<?php 
}
?>
